class Documents < ActiveRecord::Migration
  def self.up
	create_table "documents", :force => true do |t|
      t.column :name,                      :string
      t.column :filename,                  :string
      t.column :content_type,              :string
      t.column :data,                      :longblob
      t.column :document_type_id,          :integer
    	t.column :created_by,			           :integer
      t.column :created_at,                :datetime
      t.column :updated_at,                :datetime     
	end

  end

  def self.down
	drop_table "documents"
  end
end
